package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import lombok.Data
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "en_enterprise_training_needs")
@TableName("en_enterprise_training_needs")
@ApiModel(value = "企业培训需求")
data class EnterpriseTrainingNeeds(


        @ApiModelProperty("企业id")
        var enterpriseId: String? = null,

        @ApiModelProperty("专业类型[,隔开]")
        var professionalTypes: String? = "",

        @ApiModelProperty("培训内容")
        var trainingContent: String? = ""

): XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()

    companion object {

        private const val serialVersionUID = 1L
    }
}